package com.coderman.infosys.user.domain.enums;

import lombok.Getter;

/**
* @Description:UserStatusEnum类
* @Author:shenshuai
* @CreateTime:2021-09-29 15:05:25
* @version v1.0
*/
@Getter
public enum UserStatusEnum {

   /**
    *
    */
   NORMAL(1,"正常"),
   CLOSED(2,"关闭"),
   DISABLE(3,"禁用"),
   WAIT_ENABLE(4,"待启用"),
   ;

   /** 状态code **/
   private Integer code;
   /** 状态描述 **/
   private String desc;


   UserStatusEnum(Integer code, String desc){
       this.code = code;
       this.desc = desc;
   }



   /**
    *
    * @Description:static
    * @return UserStatusEnum
    */
    public static UserStatusEnum  getByCode(Integer code){
       return null;
    }

}